package com.tinyseed.emcp.api.basicdata.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/***
 * @ClassName: VrealtimeMonitor
 * @Description: TODO
 * @Auther: Harlan.Xiong
 * @Date: 2019-12-23 18:02
 * @version : V1.0
 */
@Data
@Table(name = "v_realtime_monitor")
@Entity()
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class VrealtimeMonitor implements Serializable {

    /**
     * 主键
     */
    @Id
    @GeneratedValue
    @Column(name = "id")
    private Long id;

    /**
     * 组织机构ID
     */
    @Column(name = "organize_id")
    private Long organizeId;
    /**
     * 组织机构名称
     */
    @Column(name = "organize_name")
    private String organizeName;

    /**
     * 企业名称
     */
    @Column(name = "enterprise_name")
    private String enterpriseName;
    /**
     * 行业Code
     */
    @Column(name = "industry_code")
    private String industryCode;
    /**
     * 行业
     */
    @Column(name = "industry_name")
    private String industryName;

    /**
     * 生产状态
     */
    @Column(name = "produce_status")
    private String produceStatus;

    /**
     * 经度
     */
    @Column(name = "longitude")
    private Float longitude;

    /**
     * 纬度
     */
    @Column(name = "latitude")
    private Float latitude;

    /**
     * 详细地址
     */
    @Column(name = "address")
    private String address;

    /**
     * 异常状态
     */
    @Column(name = "error_status")
    private String errorStatus;

    /**
     * 产污检测点数量
     */
    @Column(name = "produce_device_count")
    private Long produceDeviceCount;

    /**
     * 治污检测点数量
     */
    @Column(name = "pollution_device_count")
    private Long pollutionDeviceCount;

    /**
     * 运行检测点数量
     */
    @Column(name = "run_device_count")
    private Long runDeviceCount;

    /**
     * 列表运行检测点数量
     */
    @Column(name = "run_device_count_list")
    private Long runDeviceCountList;

    /**
     * 停机检测点数量
     */
    @Column(name = "stop_device_count")
    private Long stopDeviceCount;

    /**
     * 列表停机检测点数量
     */
    @Column(name = "stop_device_count_list")
    private Long stopDeviceCountList;

    /**
     * 失联检测点数量
     */
    @Column(name = "lost_contact_device_count")
    private Long lostContactDeviceCount;
}
